import React from 'react';
import {changeTdk, goSystem, setScrollTop} from "../../../assets/js/utils";
class groupMob extends React.Component{
    constructor(){
        super();
        this.state={
            title:'成长型企业平台-中智关爱通',
            description:'弹性福利,弹性福利平台,弹性福利外包,弹性福利外包,弹性福利供应商,企业弹性福利,员工弹性福利',
            keywords:'关爱通为企业提供弹性福利解决方案,以积分发放形式满足全体员工个性化需求,控制企业总体成本解决企业成本管理和员工满意度的矛盾',
        }
    }
    componentDidMount(){
        this.goSystem();
        changeTdk(this.state.title,this.state.description,this.state.keywords);
        setScrollTop(window.base.pages.index.iScrollTop);
    }
    //判断跳转平台
    goSystem(){
        goSystem(this.props,'growingup')
    }
    //页面离开时调用，页面离开时去除滚动事件解决页面切换时内存泄漏，
    componentWillUnmount(){
        window.removeEventListener('scroll',setScrollTop());
        this.setState=(state,callback)=>{
            return;
        }
    }
    render() {
        return (
            <div>
                yidong
            </div>
        );
    }
}
export default groupMob